/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.infor.entity;

import com.jeeplus.modules.infor.entity.Department;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 职位Entity
 * @author 李超辉
 * @version 2017-11-22
 */
public class Position extends DataEntity<Position> {
	
	private static final long serialVersionUID = 1L;
	private Department department;		// 所属部门
	private String code;		// 职位代码
	private String name;		// 职位名称
	private String status;		// 是否启用
	private String projectName; //项目名称
	
	public Position() {
		super();
	}

	public Position(String id){
		super(id);
	}

	@ExcelField(title="所属部门", fieldType=Department.class, value="department.name", align=2, sort=1)
	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}
	
	@ExcelField(title="职位代码", align=2, sort=2)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@ExcelField(title="职位名称", align=2, sort=3)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="是否启用", align=2, sort=4)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

   @ExcelField(title="项目名称",align=2,sort=5)
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
}